﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace SimpleRest.WebTest.Entities
{
    public class Price
    {
        [Required(ErrorMessage = "Currency type is required for price.")]
        public string Currency { get; set; }

        [Required(ErrorMessage="Amount type for price is required.")]
        [Range(0, Int32.MaxValue, ErrorMessage="The price amount must be greater than 0.")]
        public decimal Amount { get; set; }
    }
}